package io.xiaojl.xj2ee.modules.sys.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import io.xiaojl.xj2ee.modules.sys.entity.SysMenuEntity;

@Mapper
public interface SysMenuEntityMapper {
    int deleteByPrimaryKey(Long menuId);

    int insert(SysMenuEntity record);

    int insertSelective(SysMenuEntity record);

    SysMenuEntity selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(SysMenuEntity record);

    int updateByPrimaryKey(SysMenuEntity record);

    /**
	 * 根据父菜单，查询子菜单
	 * 
	 * @param parentId
	 *            父菜单ID
	 */
	List<SysMenuEntity> queryListParentId(Long parentId);

	/**
	 * 获取不包含按钮的菜单列表
	 */
	List<SysMenuEntity> queryNotButtonList();

	/**  
	 * <p>Title: selectList</p>  
	 *
	 * <p>Description: </p>  
	 *
	 * @param condition
	 * @return  
	 */ 
	List<SysMenuEntity> selectList(Map<String, Object> condition);
}